using Framework;
using Framework.UI;
using UnityEngine;
using UnityEngine.UI;


namespace Game {
    public sealed class MainPanel : UIPanel
    {
        private void Start()
        {
        }

        private void OnDestroy()
        {
        }

        public void OnClickSettingBtn()
        {
            GameEntry.UI.OpenUI(AssetUtility.GetUIPath("Main/SettingWindow")).Coroutine();
        }

        public void OnClickTipBtn()
        {
            Log.Info("OnClickTipBtn");
            GameEntry.UI.OpenUI(AssetUtility.GetUIPath("Main/TipWindow")).Coroutine();
        }

        public void OnClickFightBtn()
        {
            Log.Info("OnClickFightBtn");
            // GameEntry.UI.CloseUI(this);
            GameEntry.Scene.LoadScene("FightScene");
        }

        public void OnClickCharacterBtn()
        {
            GameEntry.UI.OpenUI(AssetUtility.GetUIPath("Character/CharacterPanel")).Coroutine();
        }
    }
}